using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace BizTalkCrossReferenceManager.UI
{
    public partial class ApplicationTypesForm : Form
    {
        public ApplicationTypesForm()
        {
            InitializeComponent();
        }

        private void ApplicationTypesForm_Load(object sender, EventArgs e)
        {
            // TODO: This line of code loads data into the 'crossReferenceDataDataSet.xref_AppType' table. You can move, or remove it, as needed.
            this.xref_AppTypeTableAdapter.Fill(this.crossReferenceDataDataSet.xref_AppType);

        }

        private void ApplicationTypesForm_FormClosing(object sender, FormClosingEventArgs e)
        {
            if (this.crossReferenceDataDataSet.xref_AppType.GetChanges() != null)
            {
                DialogResult dr = MessageBox.Show("Would you like to save the changes", "Save Changes", MessageBoxButtons.YesNo);
                if (dr == DialogResult.Yes)
                {
                    this.xref_AppTypeTableAdapter.Update(this.crossReferenceDataDataSet);
                }
            }
        }
    }
}